#include <iostream>

using namespace std;


template<class T> //模板类
class  Pic
{
public:
	void show(T n)
	{
		if(n <= 0 || n == 'a'-1 || n == 'A'-1)   
			return;
		else
		{
			if(n >= 'a' && n <= 'z'&& sizeof(n)==1)                //ASCII
			{
				int tem = n - 'a' + 1;              //打印次数
				for(int i = 0;i < tem;i++)
					cout<<n;
				cout<<endl;  //换行
				show(n - 1);
			}
			else if(n >= 'A' && n <= 'Z')
			{
				int tem = n - 'A' + 1;
				for(int i = 0;i < tem;i++)
					cout<<n;
				cout<<endl;
				show(n - 1);
			}
			else if(n > 0 && n < 10)  //7.6
			{
				int tem = n / 1;  //记录循环打印次数
				for(int i = 0;i < tem;i++)
					cout<<n;
				cout<<endl;
				show(n - 1);
				
			}
			else
				cout<<"不给你玩了"<<endl;
		}
	}
private:
	T n;

};






int main()
{

	Pic<int> a;
	a.show(100);
	Pic<float> b;
	b.show(7.7);
	Pic<char> c;
	c.show('g');
	Pic<char> d;
	d.show('G');
	Pic<int> g;
	

	
}